package top.maof.book.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.maof.book.model.Contents;
import top.maof.book.result.PageData;
import top.maof.book.result.PageWrap;

import java.util.List;

/**
 * Created by CodeX4J.
 */

public interface ContentsService extends IService<Contents> {

    public PageData<Contents> findPage(PageWrap<Contents> pageWrap);

    public int add(Contents contents);

    public Contents find(int id);

    Contents findByUrl(String url);

    public int update(Contents contents);

    public int delete(int id);

    List<Contents> findByBookId(int bookId);

    List<Contents> findByBookIdAndWebId(Integer bookId, Integer webId);

    int updateByPrimaryKeySelective(Contents record);

}
